@extends('layouts.admin')
@push('morecss')
    <link href="//cdn.tudouyu.cn/AdminInspinia/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css"
          rel="stylesheet">
@endpush

@push('morescript')
    <script type="application/javascript">
        let page_params = {
            @can('admin.wxmassresult.index')
            url_list: '{{ route('admin.wxmassresult.index') }}',
            @endcan
        }
    </script>
    <!-- require page js -->
    <script src="{{ mix('js/admin/wxmassresult_index.js') }}"></script>
@endpush
@section('content')
    <div class="wrapper wrapper-content animated fadeInRight ecommerce">
        <div class="ibox-content m-b-sm border-bottom">
            <div class="row">
                <div class="col-sm-12">
                    群发的结果为“send success”或“send fail”或“err(num)”。但send success时，也有可能因用户拒收公众号的消息、系统错误等原因造成少量用户接收失败。<br>
                    err(num)是审核失败的具体原因，可能的情况如下：<br>
                    err(10001),涉嫌广告<br>
                    err(20001), 涉嫌政治<br>
                    err(20004), 涉嫌社会<br>err(20002), 涉嫌色情<br>
                    err(20006), 涉嫌违法犯罪<br>
                    err(20008), 涉嫌欺诈<br>
                    err(20013), 涉嫌版权<br>
                    err(22000), 涉嫌互推(互相宣传)<br>
                    err(21000), 涉嫌其他<br>
                    err(30001), 原创校验出现系统错误且用户选择了被判为转载就不群发<br>
                    err(30002),原创校验被判定为不能群发<br>
                    err(30003),原创校验被判定为转载文且用户选择了被判为转载就不群发
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="row">
                <div class="col-sm-4">
                    <div class="form-group">
                        <label class="control-label" for="keyword">关键字</label>
                        <input type="text" id="keyword" name="keyword" value="" placeholder="请输入搜索关键字"
                               class="form-control">
                    </div>
                </div>
                <div class="col-sm-2">
                    <div class="form-group">
                        <label class="control-label" for="product_name">&nbsp;&nbsp;</label>
                        <div>
                            <button class="btn btn-primary" type="button" v-on:click="query"><i class="fa fa-search"></i>
                                搜索
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox">
                    <div class="ibox-content">
                        <table id="table" data-classes="table table-no-bordered">
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 查看图文群发结果 -->
    <div class="ibox-content" id="box-article" style="display: none">
        <table class="table">
            <thead>
            <tr>
                <th>群发任务ID</th>
                <th>文章标题</th>
                <th>文章排序</th>
                <th>用户声明文章的状态</th>
                <th>系统校验的状态</th>
                <th>相似原创文的url</th>
                <th>相似原创文的类型</th>
                <th>是否能转载</th>
                <th>是否需要替换成原创文内容</th>
                <th>是否需要注明转载来源</th>
            </tr>
            </thead>
            <tbody>
            <tr v-for="item in cur_articles">
                <td>@{{ item.msg_id }}</td>
                <td>@{{ item.title }}</td>
                <td>@{{ item.index_num }}</td>
                <td>@{{ item.user_declare_state }}</td>
                <td>@{{ item.audit_state }}</td>
                <td>@{{ item.original_article_url }}</td>
                <td>@{{ item.original_article_type }}</td>
                <td>@{{ item.can_reprint == 1 ? '是' : '否' }}</td>
                <td>@{{ item.need_replace_content == 1 ? '是' : '否' }}</td>
                <td>@{{ item.need_show_reprint_source == 1 ? '是' : '否' }}</td>
            </tr>
            </tbody>
        </table>
    </div>
@endsection